from Tkinter import * 
import wx
import sys
from Example PyQt4 import QtGui

class App:
	def __init__(self, master):
		frame = Frame(master); frame.pack()
		self.button = Button(
			frame, text ="SALIR", fg="red", command= frame.quit
			)
		self.button.pack(side=LEFT)
		self.hi_there = Button(frame, text="HOLA", command=self.say_hi)
		self.hi_there.pack(side=LEFT)
	def say_hi(self):
		print "hey, Caramba...!"
root = Tk(); app =App(root);
root.mainloop(); root.destroy()

def treta(event): print "treta"
class Example(wx.Frame):
	def __init__(self, *args, **kwargs):
		super(Example, self).__init__(*args, **kwargs)
		self.InitUI()
	def InitUI(self):
		menubar = wx.MenuBar(); fileMenu=wx.Menu()
		ftr = fileMenu.Append(103, 'TRETA', 'TRETA')
		fit= fileMenu.Append(wx.ID_EXIT, 'Qut', 'Qut')
		menubar.Append(fileMenu,'&File');
		self.SetMenuBar(menubar)
		self.Bind(wx.EVT_MENU, self.OnQuit, fit)
		self.Bind(wx.EVT_MENU, treta, ftr)
		self.SetSize((300,200));self.SetTitle('Menu')
		self.Centre(); self.Show(True)
	def OnQuit(self, e):self.Close()
def main(): ex = wx.App(); Example(None); ex.MainLoop()
if __name__ == '__main__': main()

class Example(QtGui.QMainWindow):
	def __init__(self):
		super(Example, self).__init__(); self.InitU()
	def InitUI(self):
		eact = QtGui.QAction(QtGui.Qlcon('exit.png'), '&Exit', self)
		tact = QtGui.QAction(QtGui.Qlcon('exit.png'), '&Exit', self)








